package cn.zl.api.dto.login;

import cn.yunbamboos.rest.service.anno.param.ParamType;
import cn.yunbamboos.rest.service.anno.param.enums.Type;
import cn.yunbamboos.rest.service.dto.Data;
import cn.yunbamboos.rest.service.dto.out.GenericOutDTO;

public class LoginOutDTO extends GenericOutDTO {

    @ParamType(path = "token", type = Type.String, title = "TOKEN字符串", required = true, example = "TOKEN字符串")
    private String token;

    public LoginOutDTO() {
        super();
    }

    @Override
    public void encode(Data data) {
        super.encode(data);
        data.set("token", token);
    }

    public void setToken(String token) {
        this.token = token;
    }
}
